Special-case emscripten without atomics to take no-threads path#156366
Special-case emscripten without atomics to take no-threads path#156366juntyr wants to merge 1 commit into
Conversation
|
rustbot has assigned @Mark-Simulacrum. Use Why was this reviewer chosen?The reviewer was selected based on:
|
3eabd84 to
aeabcda
Compare
Does Emscripten without atomics mean Emscripten without threads? It's not obvious to me that is true. |
|
Or the reverse - atomics could be enabled but pthreads disabled. If Emscripten pthreads needs Also for a Rust staticlib there might not be any link args? |
@sbc100 Could you answer this one? |
Fixes #156350
Emscripten's pthread stub, which is used when compiling Emscripten without pthreads/atomics, has an unsound mutex implementation. As a quick fix, explicitly make Emscripten without atomics take the no-threads path.
@hoodmane Do we support Emscripten tests in CI here? How should we test this?